-- GENERATED SPELL FOR [Forgotten Peasant] --


function spell0_27226(pUnit, Event) --@Bonk,n/a--
pUnit:FullCastSpellOnTarget(51601,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27226', 6333, 1)
end

function Sorts_27226(pUnit, Event)
local choix_sorts_27226 = math.random(0, 0)
if choix_sorts_27226 == 0 then
pUnit:RegisterEvent('spell0_27226', 1, 1)
end
end

function mob27226_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27226', math.random(1500, 3000), 1)
end

function mob27226_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27226_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27226_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27226, 1, 'mob27226_Action')
RegisterUnitEvent(27226, 2, 'mob27226_Leave')
RegisterUnitEvent(27226, 3, 'mob27226_Kill')
RegisterUnitEvent(27226, 4, 'mob27226_Die')
